/*
 * @Author: chenyuanming
 * @Date: 2022-04-07 15:06:17
 * @LastEditTime: 2022-04-11 14:30:45
 * @LastEditors: chenyuanming
 */

import Axios from "../../utils/http";
const baseUrl = 'http://139.155.237.161:8080'
export async function getannualCurveOption() {
    return Axios({
        url: baseUrl + '/statistics/findYearCount',
        method: 'get'
    })
}
export async function getCustomerProfileOption() {
    return Axios({
        url: baseUrl + '/statistics/findSynopsis',
        method: 'get'
    })
}
export async function getcustomerAnalysis(employeeId, endDate, startDate) {
    return Axios({
        url: baseUrl + '/statistics/findCustomerKinds',
        method: 'get',
        params: {
            account: employeeId,
            endDate,
            startDate
        }
    })
}
export async function getDifferentTableCount(type) {
    if (!type) {
        throw new Error('参数类型必传')
    }
    return Axios({
        url: baseUrl + '/statistics/findDifferentTableCount',
        method: 'get',
        params: {
            tableKinds: type
        }
    })
}
export async function getDetailData(page, limit, startDate, endDate) {
    return Axios({
        url: baseUrl + '/statistics/findDetail',
        method: 'get',
        params: {
            page,
            limit,
            startDate,
            endDate
        }
    })
}
export async function getOrderCommission(page, limit, startDate, endDate) {
    return Axios({
        url: baseUrl + '/statistics/findOrderCommission',
        method: 'get',
        params: {
            page,
            limit,
            startDate,
            endDate
        }
    })
}

// /statistics/findOrderCommission